﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Extensions.AutoMapper
{
    public class AutoMapperConfig
    {
        /// <summary>
        /// 静态全局AutoMapper配置文件
        /// </summary>
        /// <returns></returns>
        public static MapperConfiguration RegisterMappers()
            {
                return new MapperConfiguration(cfg => {
                    cfg.AddProfile(new CustomProfile());
                });
            }
    }
}
